(:: pragma bea:global-element-parameter parameter="$submitOrder1" element="ns0:SubmitOrder" location="../WSDLs/SubmitOrder.wsdl" ::)
(:: pragma bea:global-element-return element="ns0:SubmitOrderResponse" location="../WSDLs/SubmitOrder.wsdl" ::)

declare namespace ns0 = "http://www.example.org/SubmitOrder/";
declare namespace xf = "http://tempuri.org/ActivateNewCustomer/Transformation/test/";

declare function xf:test($submitOrder1 as element(ns0:SubmitOrder))
    as element(ns0:SubmitOrderResponse) {
        <ns0:SubmitOrderResponse>
            <customerId>{ data($submitOrder1/customer_id) }</customerId>
            <serviceId>{ data($submitOrder1/service_id) }</serviceId>
            <orderId>{ data($submitOrder1/orderId) }</orderId>
        </ns0:SubmitOrderResponse>
};

declare variable $submitOrder1 as element(ns0:SubmitOrder) external;

xf:test($submitOrder1)